package com.xmx.mapper;

import com.xmx.entity.User_roles;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface IUser_RolesMapper {
    //添加对应关系
    @Insert("insert into user_roles values(#{uid},#{rid})")
    void addUser_role(@Param("uid") Integer uid,@Param("rid") Integer rid);

    //根据rid做删除
    @Delete("delete from user_roles where rid=#{rid}")
    void deleteur(Integer rid);
    //根据uid做删除
    @Delete("delete from user_roles where uid=#{uid}")
    void deleteuru2(Integer uid);

}
